class AddFinancesToTheMix < ActiveRecord::Migration
  def self.up
    create_table :line_items do |t|
    	t.integer :status
    	t.integer :group_id
    	t.integer :fund_id
  	end
    create_table :line_item_entries do |t|
    	t.string :name
    	t.string :note
    	t.string :status
    	t.integer :line_item_id
    	t.datetime :created_at
    	t.integer :created_by_id
    end
    create_table :funds do |t|
    	t.integer :status
    	t.integer :group_id
    end
    create_table :fund_entries do |t|
    	t.string :status
    	t.string :name
    	t.string :note
    	t.integer :fund_id
    	t.datetime :created_at
    	t.integer :created_by_id
  	end
  end

  def self.down
    drop_table :line_item
    drop_table :line_item_entry
    drop_table :fund
    drop_table :fund_entry
  end
end
